text = input("请输入一段文字：")
with open("D:\hello.txt", "w") as file:
    file.write(text)
print("已将文字保存在D:\hello.txt中。")
